package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.ShoppingCart;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {

    /*动态条件查询*/
    List<ShoppingCart> list(ShoppingCart shoppingCart);


    /*根据id修改商品数量*/
    void updateNumberById(ShoppingCart shoppingCart);

    /*插入购物车数据*/
    void insert(ShoppingCart shoppingCart);


    /*根据用户id删除购物车数据*/
    void deleteByUserId(Long Id);

    void deleteById(Long id);


    void saveList(List<ShoppingCart> list);
}
